﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Common;
using System.Data.OleDb;
using System.Data;

namespace Mdb2RIA
{
    class Program
    {
        private enum Arguments
        {
            ConnectionString,
            Namespace,

            //MUST BE LAST
            Count
        };

        static void Main(string[] args)
        {
            if (args.Count() != (int)Arguments.Count)
            {
                Console.WriteLine("Usage Mdb2RIA.exe <ConnectionString> <NamespaceName>");
                return;
            }

            MdbDatabase database = new MdbDatabase(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Roy\Documents\Database1.mdb");

            database.GenerateRIAService();
        }
    }
}
